package com.amado.course43awt;

import java.awt.*;
public class QQInfoManage extends Frame
{
	QQInfoManage(String name)
	{
		super(name);
		MenuBar f = new MenuBar();
		Menu a = new Menu("文件(F)"); 
		Menu b = new Menu("编辑(E)"); 
		Menu c = new Menu("视图(V)"); 
		Panel pCenter = new Panel();
		Panel pCenterUp = new Panel();
		Panel pCenterCenter = new Panel();
		Panel pCenterCenterRight = new Panel();
		Panel pCenterCenterCenter = new Panel();
		Panel pCenterCenterCenters = new Panel();
		Panel pCenterCenterRights = new Panel();
		Panel pCenterCenterLeft = new Panel();
		Panel pCenterCenterUp = new Panel();
		Panel pUp = new Panel();
		Panel pLeft = new Panel();
		Panel pLeftCenter = new Panel();
		Panel pUpCenter = new Panel();
		Panel pUpRight = new Panel();
		Panel pUpLeft = new Panel();
		Panel pUpLefts =  new Panel();

		a.add("123");
		f.add(a);
		f.add(b);
		f.add(c);
		setMenuBar(f);
		setLayout(new BorderLayout(1,1));
		add(pLeft,BorderLayout.WEST);
		add(pCenter,BorderLayout.CENTER);
		add(pUp,BorderLayout.NORTH);
		pUp.setLayout(new BorderLayout());
		pUp.add(pUpLefts,BorderLayout.WEST);
		pUp.add(new Panel(),BorderLayout.NORTH);
		pUp.add(new Panel(),BorderLayout.SOUTH);
		pUp.add(new Panel(),BorderLayout.EAST);
		pUp.add(pUpCenter,BorderLayout.CENTER);
		
		pUpLefts.setLayout(new BorderLayout());
		pUpLefts.add(new Panel(),BorderLayout.WEST);
		pUpLefts.add(new Panel(),BorderLayout.EAST);
		pUpLefts.add(pUpLeft,BorderLayout.CENTER);
		pUpLeft.setLayout(new FlowLayout(FlowLayout.LEFT,30,1));
		pUpLeft.add(new Button("导出"));
		pUpLeft.add(new Button("删除"));
		pUpLeft.add(new Button("刷新"));
		pUpCenter.setLayout(new FlowLayout(FlowLayout.LEFT,30,1));
		pUpCenter.add(new Label("查找 : "));
		Choice cho1= new Choice();
		Choice cho2 = new Choice();
		cho1.add("  聊天记录  ");
		cho2.add("  爱死你了(3212221)  ");
		pUpCenter.add(cho1);
		pUpCenter.add(new Label("范围 : "));
		pUpCenter.add(cho2);
		pUpCenter.add(new Label("搜索"));

		pLeft.setLayout(new BorderLayout());
		Panel temp = new Panel();
		temp.setLayout(new GridLayout(1,1));
		temp.add(new Label("   爱死你了(3212221)  "));
		pLeft.add(temp,BorderLayout.NORTH);
		pLeft.add(new Panel(),BorderLayout.WEST);
		pLeft.add(new Panel(),BorderLayout.EAST);
		pLeft.add(pLeftCenter,BorderLayout.CENTER);
		pLeftCenter.setLayout(new GridLayout(1,1));
		Panel tempPanel = new Panel();
		tempPanel.setLayout(new GridLayout(13,1,1,15));
		tempPanel.add(new Label("永州六中"));
		tempPanel.add(new Label("初中同学"));
		tempPanel.add(new Label("软件二班"));
		tempPanel.add(new Label("软件三班"));
		tempPanel.add(new Label("网     友"));
		tempPanel.add(new Label("游戏好友"));
		tempPanel.add(new Label("传奇专区"));
		tempPanel.add(new Label("设计好友"));
		tempPanel.add(new Label("新安成校"));
		tempPanel.add(new Label("冷水滩"));
		tempPanel.add(new Label("精英三班"));
		tempPanel.add(new Label("精英五班"));
		tempPanel.add(new Label("华为公司"));
		pLeftCenter.add(tempPanel);
		
		pCenter.setLayout(new BorderLayout());
		pCenter.add(pCenterUp,BorderLayout.NORTH);
		pCenter.add(pCenterCenter,BorderLayout.CENTER);
		pCenterUp.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
		pCenterUp.add(new Button("聊天记录"));
		pCenterUp.add(new Button("好友资料"));

		pCenterCenter.setLayout(new BorderLayout());
		pCenterCenter.add(pCenterCenterUp,BorderLayout.NORTH);
		pCenterCenter.add(pCenterCenterLeft,BorderLayout.WEST);
		pCenterCenter.add(pCenterCenterCenter,BorderLayout.CENTER);
		pCenterCenter.add(pCenterCenterRight,BorderLayout.EAST);
		
		pCenterCenterUp.setLayout(new GridLayout(1,10));
		pCenterCenterUp.add(new Label("项目"));
		pCenterCenterUp.add(new Panel());
		pCenterCenterUp.add(new Label("内容"));
		pCenterCenterUp.add(new Panel());
		pCenterCenterUp.add(new Panel());
		pCenterCenterUp.add(new Label("备注"));
		pCenterCenterUp.add(new Panel());
		pCenterCenterUp.add(new Panel());
		pCenterCenterUp.add(new Panel());
		pCenterCenterUp.add(new Panel());

		pCenterCenterLeft.setLayout(new GridLayout(23,1));  
		pCenterCenterLeft.add(new Label("账号                               "));
		pCenterCenterLeft.add(new Label("昵称"));
		pCenterCenterLeft.add(new Label("年龄"));
		pCenterCenterLeft.add(new Label("性别"));
		pCenterCenterLeft.add(new Label("国家/地区"));
		pCenterCenterLeft.add(new Label("省份"));
		pCenterCenterLeft.add(new Label("城市"));
		pCenterCenterLeft.add(new Label("电子邮件"));
		pCenterCenterLeft.add(new Label("地址"));
		pCenterCenterLeft.add(new Label("邮政"));
		pCenterCenterLeft.add(new Label("电话号码"));
		pCenterCenterLeft.add(new Label("GSM  手机"));
		pCenterCenterLeft.add(new Label("手机类型"));
		pCenterCenterLeft.add(new Label("真实名字"));
		pCenterCenterLeft.add(new Label("生肖"));
		pCenterCenterLeft.add(new Label("血型"));
		pCenterCenterLeft.add(new Label("星座"));
		pCenterCenterLeft.add(new Label("毕业院校"));
		pCenterCenterLeft.add(new Label("职业"));
		pCenterCenterLeft.add(new Label("个人主页"));
		pCenterCenterLeft.add(new Label("个人说明"));
		pCenterCenterCenter.setLayout(new GridLayout(23,1));
		pCenterCenterCenter.add(new Label("20080808"));
		pCenterCenterCenter.add(new Label("再爱你一次"));
		pCenterCenterCenter.add(new Label("18"));
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Panel());
		pCenterCenterCenter.add(new Label("http://392200829.com"));
		pCenterCenterCenter.add(new Panel());
		
		pCenterCenterRight.setLayout(new BorderLayout());
		pCenterCenterRight.add(pCenterCenterRights,BorderLayout.CENTER);
		pCenterCenterRight.add(new Panel(),BorderLayout.EAST);
		pCenterCenterRights.setLayout(new GridLayout(23,1));
		pCenterCenterRights.add(new Label("2331                                                                                             "));
		
		pUpLeft.setBackground(new Color(238,255,255));
		pUpCenter.setBackground(new Color(238,255,255));
		tempPanel.setBackground(Color.WHITE);
		pCenterCenterLeft.setBackground(Color.WHITE);
		pCenterCenterRights.setBackground(Color.WHITE);
		pCenterCenterCenter.setBackground(Color.WHITE);
		pCenterCenterUp.setBackground(new Color(224,253,254));
		pLeftCenter.setBackground(new Color(224,253,254));
		setBackground(new Color(224,253,254));
		setBounds(100,100,800,550);
		setVisible(true);
	}
	public static void main(String[] args) 
	{
		new QQInfoManage("→信息管理器");
	}
}
